import User from "@/pages/user/user.vue";
import Message from "@/pages/message/Message.vue";
import FollowTrend from "@/pages/follow/FollowTrend.vue";
import Dashboard from "@/pages/dashboard/DashBoard.vue";
import Login from "@/pages/login.vue";
import Index from "@/pages/index.vue"
import Main from "@/pages/main/Main.vue";
import publish from "@/pages/publish/publish.vue";
import Chat from "@/components/Chat.vue";
import Order_create from "@/pages/order/OrderCreate.vue";
import order_create from "@/pages/order/OrderCreate.vue";

import payment_pay from "@/pages/order/PaymentPay.vue";
import Order_detail from "@/pages/order/OrderDetail.vue";
import order_evaluate from "@/pages/order/OrderEvaluate.vue";
import PaymentOrder from "@/api/paymentOrder";

export default [
    {
        path: "/",
        redirect: "/index",
    },
    {
        name: "login",
        path: "/login",
        component: Login
    },
    {
        name: "chat",
        path: "/chat",
        component: Chat
    },
    {
        name: "main",
        path: "/main",
        component: Main
    },
    {
        name: "index",
        path: "/index",
        component: Index,
        redirect: "/dashboard",
        children: [
            {
                path: "/dashboard",
                component: Dashboard,
                name: "dashboard",
            },
            {
                path: "/followTrend",
                component: FollowTrend,
                name: "followTrend",
            },
            {
                path: "/notice",
                component: Message,
                name: "notice",
            },
            {
                path: "/user",
                component: User,
                name: "user",
            },
            {
                path: "/publish",
                component: publish,
                name: "push",
            },
            {
                path: "/orderDetail",
                component: Order_detail,
                name: "orderDetail",
            },
            {
                path: "/orderCreate",
                component: order_create,
                name: "orderCreate",
            },
            {
                path: "/paymentPay",
                component: payment_pay,
                name: "paymentPay",
            },
            {
                path: "/orderEvaluate",
                component: order_evaluate,
                name: "orderEvaluate",
            },
        ],
    },
];
